/**
 * Created by asus on 2017/4/16.
 */
public class Employee extends StaffMember {
    protected String socialSecurityNumber;
    protected double payRate;
    public Employee(String eName,String eAddress,String ePhone,String socSecNumber,double rate){
        super(eName,eAddress,ePhone);
        socialSecurityNumber = socSecNumber;
        payRate = rate;
    }
    public String toString(){
        String result = super.toString();
        result += "\nSocial Security Number :" + socialSecurityNumber;
        return result;
    }
    public double pay(){
        return payRate;
    }
}
